#! /bin/sh
packageDir=`dirname $0`
cd $packageDir

echo '[INFO]--------------------------------------------------------------------'
echo '[INFO]-----------------------package begining ...-------------------------'
mvn clean
mvn assembly:assembly

# copy config to output
cp -rvf config  output/

echo '[INFO]--------------------------------------------------------------------'
echo '[INFO]-----------copy *-jar-with-dependencies.jar to output---------------'
cp target/*-jar-with-dependencies.jar output/jar/search-update.jar

echo '[INFO]--------------------------------------------------------------------'
echo '[INFO]--------------------------package finished--------------------------'
echo '[INFO]--------------------------------------------------------------------'
